<?php
namespace Home\Model;
use Think\Model;

class IndexModel extends Model {
	
	protected $tableName = 'index';
	/**
	 * 自动验证规则
	 * @author jry <598821125@qq.com>
	 */
	protected $_validate = array(
			array('name', 'require', '用户名不能为空', ),			
			//array('name', 'require', '姓名不能为空'),
			//array('url', '0,255', '链接长度为0-25个字符', self::EXISTS_VALIDATE, 'length',self::MODEL_BOTH),
	);
	
	/**
	 * 自动完成规则
	 * @author jry <598821125@qq.com>
	*/
/* 	protected $_auto = array(
			array('ctime', 'time', self::MODEL_INSERT, 'function'),
	); */
}